package com.example.newspublish.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.newspublish.pojo.dto.UserDTO;
import com.example.newspublish.pojo.entity.Comment;
import com.example.newspublish.pojo.entity.User;
import com.example.newspublish.pojo.form.RegisterForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    int login(@Param("username") String username,@Param("password") String password);

    int register(RegisterForm registerForm);

    User getUserAuth(@Param("username") String username);

    void update(User user);
}
